<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="bi/cost/costAction!list.action" method="post">        
        <div class="bjui-searchBar">
            <label>查询日期：</label>  
            <input type="text" name="month" id="dialog_ksrq" value="<fmt:formatDate value='${cost.month}' pattern='yyyy-MM-dd'/>" data-toggle="datepicker" data-rule="required" size="16">&nbsp;&nbsp;
            <button id="searchbtn" type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="bi/cost/add.jsp" class="btn btn-default" data-toggle="dialog" data-width="700" data-height="250" data-id="dialog-add" data-mask="true" data-on-close="doc_dialog_close">添加</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
	<table id="reclist" class="table table-bordered" data-selected-multi="false" data-width="100%"
	    data-toggle="tablefixed" data-nowrap="true">
		<thead>
		<tr>
			<th>月份</th>
			<th>核算单位编码</th>
			<th>核算单位名称</th>
			<th>金额</th>
		</tr>
		</thead>
		<tbody>
		<c:forEach var="costlist" items="${costList.rows}">
		<tr>
			<td><fmt:formatDate value='${costlist.month}' pattern='yyyy-MM-dd'/></td>
			<td>${costlist.departmentCode}</td>
			<td>${costlist.departmentName}</td>
			<td>${costlist.cost}</td>
		</tr>
		</c:forEach>
		</tbody>
	</table>
</div>
<div class="bjui-pageFooter">	
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
    </ul>
</div>

